<div class="ygbox" data-flag="add">
    <div class="ygtab">
        <div class="ygtitle">
            <div class="ygt1">关联商品</div>
            <div class="ygt2">预告模板</div>
            <div class="clearit"></div>
        </div>
        <form name="trailer_form" id="trailer_form">
        <input type="hidden" name="dpId"/>
        {{each goodsDeliverList as value index1}}  
        <div class="ygcon">
        	<input type="hidden" name="goodsTemplateList[{{index1}}].goodsId" value="{{value.goods_id}}"/>
        	<input type="hidden" name="goodsTemplateList[{{index1}}].goodsName" value="{{value.goods_name}}"/>
        	<input type="hidden" name="goodsTemplateList[{{index1}}].trailerTemplateName" value=""/>
            <div class="ygc1">{{value.goods_name}}</div>
            <div class="ygc2"><i class="iconfont">&#xe60d;</i></div>
            <div class="ygc3 templatenametext" style="display:none;"></div>
            <div class="ygc3 templatenameselect">
                <select class="form-control select_detail" name="goodsTemplateList[{{index1}}].trailerTemplateId">
                    <option value="">请选择配菜预告模板</option>
                    {{each deliverPrevueVoList as v}}  
                    	<option value="{{v.id}}">{{v.title}}</option>
                    {{/each}}
                    <!-- <option>模板名称1</option>
                    <option>模板名称2</option>
                    <option>模板名称3</option> -->
                </select><span class="Validform_checktip Validform_wrong" style="display:none"></span>
            </div>
            <div class="clearit"></div>
        </div>
        {{/each}}
        <!-- <div class="ygcon">
            <div class="ygc1">套餐商品2</div>
            <div class="ygc2"><i class="iconfont">&#xe60d;</i></div>
            <div class="ygc3">
                <select class="form-control">
                    <option>请选择配菜预告模板</option>
                    <option>模板名称1</option>
                    <option>模板名称2</option>
                    <option>模板名称3</option>
                </select>
            </div>
            <div class="clearit"></div>
        </div> -->
        <!-- 小区 -->
        <div class="ygdq">
            <div class="dq-l">小区</div>
            <div class="dq-r">
                <ul class="ul-dq" id="ul-dq"></ul>
                <div class="clearit"></div>
                <div class="add-dq"><a href="javascript:void(0);" class="houseBtn"><i class="iconfont">&#xe60d;</i><span class="add-edit">新增小区</span></a><span class="Validform_checktip Validform_wrong" style="display:none"></span></div>
            </div>
            <div class="clearit"></div>
            <div class="detailmore" style="display:none;">
            	 等<span class="xq-num community_num_clss">100</span>个小区，<a href="javascript:void(0);" class="lookall">查看所有小区</a>
            </div>
        </div>
        </form>
        <!-- 按钮 -->
        <div class="btndq">
        	<button class="btn btn-primary trailerSave">保存</button>
            <button class="btn btn-default trailerCancel">取消</button>
            <button class="btn btn-primary trailerEdit" style="display:none;">编辑</button>
            <button class="btn btn-default trailerDel" style="display:none;">删除</button>
        </div>
    </div>
</div>
